package com.boot.utils;

public enum ResultCodeEum {
    SUCCESS(200, "success"),
    USERNAME_ERROR(501, "usernameError"),
    PASSWORD_ERROR(503, "passwordError"),
    NOTLOGIN(504, "notLogin"),
    REGISTERFAILED(505, "registerFailed"),
    USERNAME_USED(506, "usernameUsed"),
    NOPOWER(507, "only author can modify");

    private Integer code;
    private String message;
    ResultCodeEum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
